package duyd.jpa.training.main;

import org.springframework.context.support.GenericXmlApplicationContext;

public class TestContextAware {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
		ctx.load("application-context.xml");
		ctx.refresh();

		ContextAware contextAware = ctx.getBean("contextAware",
				ContextAware.class);
		contextAware.testContext();
	}

}
